<?php

/**
 * InstanceLicenseeMatch form.
 *
 * @package    cpfaizenay
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class InstanceLicenseeMatchForm extends BaseLicenseeMatchForm
{
  public function configure() {

      parent::configure();
      unset($this['licensee_id'], $this['created_at'], $this['updated_at'], $this['datetime_match'], $this['match_type_id']);

      $this->widgetSchema['status'] = new sfWidgetFormSelectRadio(array('choices' => array('V' => 'V', 'D' => 'D')));
      $this->setDefault('status', 'V');

      $this->setValidator['status'] = new sfValidatorChoice(array('choices' => array('V' => 'V', 'D' => 'D'), 'required' => true));

      $this->validatorSchema['opponent_lastname']->setOption('required', false);
      $this->validatorSchema['opponent_firstname']->setOption('required', false);

      $this->widgetSchema->setFormFormatterName('list');
  }
}